namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("PUB_DEVICE")]
    public partial class PUB_DEVICE
    {
        [Key]
        [StringLength(40)]
        public string DEVICE_ID { get; set; }

        [Required]
        [StringLength(40)]
        public string NODE_ID { get; set; }

        [Required]
        [StringLength(40)]
        public string DEVICE_NAME { get; set; }

        [Required]
        [StringLength(40)]
        public string MODEL_ID { get; set; }

        [Required]
        [StringLength(20)]
        public string IP { get; set; }

        public int? PORT { get; set; }
        
        [StringLength(800)]
        public string PARAMETERS { get; set; }

        public bool? NET_STATUS { get; set; }

        public DateTime? NET_STATUS_TIME { get; set; }

        public virtual PUB_OF_NODE PUB_OF_NODE { get; set; }

        public virtual PUB_DEVICEMODEL PUB_DEVICEMODEL { get; set; }

    }
}
